From ef2157e315380457e2278ac5d12ffd13820c5299 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Tue, 18 Feb 2025 15:50:29 +0100 Subject: [PATCH] Add {} to single line if. Signed-off-by: Camila Ayres --- src/gui/folder.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index c73bb0368..12ceca25a 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1521,8 +1521,9 @@ void Folder::slotFolderConflicts(const QString &folder, const QStringList &confl void Folder::warnOnNewExcludedItem(const SyncJournalFileRecord &record, const QStringView &path) { // Never warn for items in the database - if (record.isValid()) + if (record.isValid()) { return; + } // Don't warn for items that no longer exist. // Note: This assumes we're getting file watcher notifications @@ -1530,15 +1531,18 @@ void Folder::warnOnNewExcludedItem(const SyncJournalFileRecord &record, const QS // on content change that would create spurious warnings. const auto fullPath = QString{_canonicalLocalPath + path}; QFileInfo fi(fullPath); - if (!FileSystem::fileExists(fullPath)) + if (!FileSystem::fileExists(fullPath)) { return; + } bool ok = false; auto blacklist = _journal.getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, &ok); - if (!ok) + if (!ok) { return; - if (!blacklist.contains(path + "/")) + } + if (!blacklist.contains(path + "/")) { return; + } const auto message = FileSystem::isDir(fullPath) ? tr("The folder %1 was created but was excluded from synchronization previously. " -- 2.30.2